<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html>
<head>
	<meta>
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="style/bootstrap.min.css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<style type="text/css">
		body {
			padding-top: 70px;
			padding-left: 70px;
			background-image:url(img/ab.png);
			
		}
	</style>
</head>

<body class="body">
	<%@ include file="top.jsp" %>
	<%@ include file="leftlabel.jsp" %>
		<div class="span9">
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">

					<a href="idea.action"><i class="icon-fire"></i>想法</a>
				</li>
				<li class="pull-right"><i class="icon-plus"></i><a href="addidea.action" class="link-black">发表想法</a></li>
			</ul><br/>
			<div class="wall" style="margin-bottom:20px;">
				<c:forEach items="${ideaList}" var="idea">
				<blockquote>
				  <h4><a href="ideacomment.action?id=${idea.id}">${idea.title}</a></h4><br/>
				  <p style="font-size:14px;line-height:1.5;">
				  	<c:if test="${fn:length(idea.content)>20 }">${ fn:substring( idea.content ,0,20)}...</c:if>
 					<c:if test="${fn:length(idea.content)<=20 }">${idea.content}</c:if>
				  </p><br/>
				  <small>${idea.user.username}发布于${idea.createtime}</small>
				  <a href="editidea.action?id=${idea.id}" title="编辑"><i class="icon-pencil"></i></a>
				  <a href="delidea.action?id=${idea.id}" title="删除"><i class="icon-trash"></i></a>
				</blockquote>
				</c:forEach>
				<div class="pagination pull-right">
				 
				</div>
				
				<div class="clear"></div>
			</div>
		</div>
	  </div>
	</div>
</body>
</html>